import { Component, OnInit } from "@angular/core";
import { NgZorroAntdModule, NZ_I18N, zh_CN } from "ng-zorro-antd";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { HttpClientModule } from "@angular/common/http";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";

@Component({
  selector: "app-test-tree",
  templateUrl: "./test-tree.component.html",
  styleUrls: ["./test-tree.component.less"]
})
export class TestTreeComponent implements OnInit {
  data = [
    {
      key: "a",
      title: "设备控制",
      children: [
        {
          key: "a-b",
          title: "a-b-title"
        },
        {
          key: "a-c",
          title: "a-c-title"
        },
        {
          key: "a-d",
          title: "a-d-title"
        }
      ]
    },
    {
      key: "b",
      title: "b-title"
    },
    {
      key: "c",
      title: "c-title"
    },
    {
      key: "d",
      title: "d-title"
    },
    {
      key: "e",
      title: "e-title"
    }
  ];

  constructor() {}

  ngOnInit() {}
}
